<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/admin/themes/simplebootx/Public/css/bootstrap.min.css" rel="stylesheet"/>
    <script src="/admin/themes/simplebootx/Public/js/jquery-1.11.1.js" type="text/javascript"></script>
    <script src="/admin/themes/simplebootx/Public/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>本站用户</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Indexorder/Order')}">
        ID：
        <input type="text" name="dd_id" style="width: 100px;" value="{:I('request.dd_id/s','')}" placeholder="请输入用户ID">
        关键字：
        <input type="text" name="keyword" style="width: 200px;" value="{:I('request.keyword/s','')}" placeholder="客户姓名/手机号/省市">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:U('Indexorder/Order')}">清空</a>
        <a type="button" class="btn btn-info" data-toggle="modal" data-target="#myModal" style="float: right">
            添加
        </a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">ID</th>
                <th>客户姓名</th>
                <th>手机号</th>
                <th>报名类型</th>
                <th>省</th>
                <th>市</th>
                <th align="center">操作</th>
            </tr>
            </thead>
            <tbody>
            <php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
            <foreach name="list" item="vo">
                <tr>
                    <td align="center">{$vo.dd_id}</td>
                    <td>{$vo.customername}</td>
                    <td>{$vo.number}</td>
                    <td>{$vo.citylocation}</td>
                    <td>{$vo.province}</td>
                    <td>{$vo.city}</td>
                    <td align="center">
                        <neq name="vo.dd_id" value="1">
                            <a href="{:U('Indexorder/Odelete',array('id'=>$vo['dd_id']))}" style="color: red;">删除</a>
                            <else/>
                            <a href="{:U('Indexorder/Odelete',array('id'=>$vo['dd_id']))}" style="color: red;">删除</a>
                        </neq>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>


<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form method="post" class="form-horizontal" action="{:U('Indexorder/addorder')}">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">添加</h4>
                </div>
                <div class="modal-body">
                    <fieldset>
                        <div class="form-group">
                            <label for="Customername">姓名：</label>
                            <input type="text" class="form-control" id="Customername" name="Customername" placeholder="请输入学生姓名">
                        </div>
                        <div class="form-group">
                            <label for="number">手机号：</label>
                            <input type="text" class="form-control" id="number" name="number" placeholder="请输入您的的手机号">
                        </div>
                        <div class="form-group">
                            <label for="CityLocation">报名类型：</label>
                            <input type="text" class="form-control" id="CityLocation" name="CityLocation" placeholder="报名类型">
                        </div>
                        <div class="form-group">
                            <label for="province">所在省：</label>
                            <input type="text" class="form-control" id="province" name="province" placeholder="请选择所在省">
                        </div>
                        <div class="form-group">
                            <label for="city">所在市：</label>
                            <input type="text" class="form-control" id="city" name="city" placeholder="请选择所在市">
                        </div>
                    </fieldset>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="submit" class="btn btn-primary js-ajax-submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="__PUBLIC__/js/common.js">
</script>
</body>
</html>